package QuestionNum_10_2_3;

public abstract class Animals {
    private String color;
    private int legNum;

    public Animals(){

    }

    public Animals(String color, int legNum) {
        this.color = color;
        this.legNum = legNum;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public int getLegNum() {
        return legNum;
    }

    public void setLegNum(int legNum) {
        this.legNum = legNum;
    }
    void eat(){
        System.out.println("吃饭");
    }

    abstract void catchMouse();

    abstract void lookHome();

}
